package com.wn.pojo;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Date;

public class Consultation {
    private Integer id;

    private Integer patientId;
    @NotNull(message = "紧急情况不能为空")
    private Integer priority;
    @NotNull(message = "会诊模式不能为空")
    private Integer mode;
    @NotBlank(message = "会诊目的不能为空")
    private String consultationPropose;
    @NotBlank(message = "病人情况不能为空")
    private String patientSituation;
    @NotNull(message = "会诊医生不能为空")
    private Integer doctorId;
    private Date consultationTime;

    private String consultationRecord;

    private Integer createUserId;

    private Date createTime;

    private Date endTime;

    private Integer status;

    public Consultation(Integer id, Integer patientId, Integer priority, Integer mode, String consultationPropose, String patientSituation, Integer doctorId, Date consultationTime, String consultationRecord, Integer createUserId, Date createTime, Date endTime, Integer status) {
        this.id = id;
        this.patientId = patientId;
        this.priority = priority;
        this.mode = mode;
        this.consultationPropose = consultationPropose;
        this.patientSituation = patientSituation;
        this.doctorId = doctorId;
        this.consultationTime = consultationTime;
        this.consultationRecord = consultationRecord;
        this.createUserId = createUserId;
        this.createTime = createTime;
        this.endTime = endTime;
        this.status = status;
    }

    public Consultation() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPatientId() {
        return patientId;
    }

    public void setPatientId(Integer patientId) {
        this.patientId = patientId;
    }

    public Integer getPriority() {
        return priority;
    }

    public void setPriority(Integer priority) {
        this.priority = priority;
    }

    public Integer getMode() {
        return mode;
    }

    public void setMode(Integer mode) {
        this.mode = mode;
    }

    public String getConsultationPropose() {
        return consultationPropose;
    }

    public void setConsultationPropose(String consultationPropose) {
        this.consultationPropose = consultationPropose == null ? null : consultationPropose.trim();
    }

    public String getPatientSituation() {
        return patientSituation;
    }

    public void setPatientSituation(String patientSituation) {
        this.patientSituation = patientSituation == null ? null : patientSituation.trim();
    }

    public Integer getDoctorId() {
        return doctorId;
    }

    public void setDoctorId(Integer doctorId) {
        this.doctorId = doctorId;
    }

    public Date getConsultationTime() {
        return consultationTime;
    }

    public void setConsultationTime(Date consultationTime) {
        this.consultationTime = consultationTime;
    }

    public String getConsultationRecord() {
        return consultationRecord;
    }

    public void setConsultationRecord(String consultationRecord) {
        this.consultationRecord = consultationRecord == null ? null : consultationRecord.trim();
    }

    public Integer getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(Integer createUserId) {
        this.createUserId = createUserId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}